<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改报工明细')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-t100wcsttm-edit" th:object="${sttm}">
            <input name="STTMDOCNO" th:field="*{STTMDOCNO}" type="hidden">
            <!--<div class="form-group">
                <label class="col-sm-3 control-label is-required">企业微信id：</label>
                <div class="col-sm-8">
                    <input name="STTM001" th:field="*{STTM001}" class="form-control" type="text" required>
                </div>
            </div>-->
             <div class="form-group">
                 <label class="col-sm-3 control-label is-required">项目号：</label>
                 <div class="col-sm-8">
                     <input name="STTM002" th:field="*{STTM002}" class="form-control" type="text" required>
                 </div>
             </div>
            <!--<div class="form-group">
                <label class="col-sm-3 control-label">项目信息：</label>
                <div class="col-sm-8">
                    <input name="STTM013" th:field="*{STTM013}" class="form-control" type="text" disabled="true">
                </div>
            </div>-->
             <div class="form-group">
                 <label class="col-sm-3 control-label">报工类型：</label>
                 <div class="col-sm-8">
                     <input name="STTM003" th:field="*{STTM003}" class="form-control" type="text" disabled="true">
                 </div>
             </div>
             <div class="form-group">
                 <label class="col-sm-3 control-label is-required">报工时长：</label>
                 <div class="col-sm-8">
                     <input name="STTM004" th:field="*{STTM004}" class="form-control" type="text" >
                 </div>
             </div>
             <div class="form-group">
                 <label class="col-sm-3 control-label is-required">报工日期：</label>
                 <div class="col-sm-8">
                     <div class="input-group date">
                         <input name="STTM005" th:field="*{STTM005}" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
                         <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                     </div>
                 </div>
             </div>
             <div class="form-group">
                 <label class="col-sm-3 control-label ">操作时间：</label>
                 <div class="col-sm-8">
                     <input name="STTM006" th:field="*{STTM006}" class="form-control" type="text"  disabled="true">
                 </div>
             </div>
             <div class="form-group">
                 <label class="col-sm-3 control-label">记录状态(1:未审核,2:已拒绝,3:已审核)：</label>
                 <div class="col-sm-8">
                     <div class="radio-box" th:each="dict : ${@dict.getType('sys_sttm_state')}">
                         <input type="radio" th:id="${'STTM007' + dict.dictCode}" name="STTM007" th:value="${dict.dictValue}" th:field="*{STTM007}">
                         <label th:for="${'STTM007' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                     </div>
                 </div>
             </div>
            <!--
             <div class="form-group">
                 <label class="col-sm-3 control-label">审批人id：</label>
                 <div class="col-sm-8">
                     <input name="STTM008" th:field="*{STTM008}" class="form-control" type="text">
                 </div>
             </div>

             <div class="form-group">
                 <label class="col-sm-3 control-label">备用：</label>
                 <div class="col-sm-8">
                     <input name="STTM009" th:field="*{STTM009}" class="form-control" type="text">
                 </div>
             </div>
             <div class="form-group">
                 <label class="col-sm-3 control-label">备用：</label>
                 <div class="col-sm-8">
                     <input name="STTM010" th:field="*{STTM010}" class="form-control" type="text">
                 </div>
             </div>
             <div class="form-group">
                 <label class="col-sm-3 control-label">备用：</label>
                 <div class="col-sm-8">
                     <div class="input-group date">
                         <input name="STTM011" th:value="${#dates.format(t100wcsttm.STTM011, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                         <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                     </div>
                 </div>
             </div>
             <div class="form-group">
                 <label class="col-sm-3 control-label">备用：</label>
                 <div class="col-sm-8">
                     <div class="input-group date">
                         <input name="STTM012" th:value="${#dates.format(t100wcsttm.STTM012, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                         <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                     </div>
                 </div>
             </div>
             -->
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />

    <script th:inline="javascript">
        var prefix = ctx + "system/sttm";
        $("#form-t100wcsttm-edit").validate({
            focusCleanup: true
        });

        $("input[name='STTM005']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-t100wcsttm-edit').serialize());
            }
        }

        $("input[name='STTM011']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='STTM012']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>